package ooday01;
//构造方法的演示
public class ConsDemo {
    public static void main(String[] args) {
        //无参构造演示：
        Student zg = new Student();
        zg.name = "张光";
        zg.className = "jad202404";
        zg.age = 20;
        zg.id = "001";
        zg.sayHi();

        System.out.println("---------------");


        //有参构造的演示：
        Student ll = new Student("李林",21,"jsd2404","002");
        ll.sayHi();
        System.out.println("---------------------");
        Student zl = new Student("赵亮",23,"jsd2404","003");
        zl.sayHi();
    }
}
